package com.seat.row.util;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {

    public static void toastFailure(Context ctx) {
        toast(ctx, "加载失败，请检查您的网络?");
    }

    public static void toast(Context ctx, String msg) {
        try {
            if (!StringUtil.isEmptyOrNull(msg)) {
                Toast.makeText(ctx, msg, Toast.LENGTH_SHORT).show();
            }
        } catch (Exception e) {
        }
    }
}
